<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>Mona's Burger</title>
	<h:outputStylesheet library="css" name="styles.css" />
	<h:outputStylesheet library="css" name="bootstrap.css" />
	<h:outputScript library="javascript" name="bootstrap.js" />
</h:head>
<h:body>
	<div class="container">
		<h1>Cliente - Mona's Burger</h1>
	
		<hr />
		
		<div class="row">
		  	<div class="col-xs-12 col-sm-6 col-md-8">
			
				<h:form >

					<h:panelGrid columns="2" class="table table-bordered">
			
						<h:outputLabel value="Cliente Id" />
						<h:outputText value="#{clienteBean.cliente.idCliente}" />
			
						<h:outputLabel value="Nome" />
						<h:outputText value="#{clienteBean.cliente.pessoa.nome}" />
			
						<h:outputLabel value="Telefone" />
						<h:outputText value="#{clienteBean.cliente.telefone}" />
			
						<h:outputLabel value="E-mail" />
						<h:outputText value="#{clienteBean.cliente.email}" />
			
					</h:panelGrid>
			
				</h:form>
			
				<hr />
			
			</div>
			<div class="col-xs-6 col-md-4">

				<h:form>
					<h:panelGrid>
			
						<h:commandLink action="#{clienteBean.fazerPedido()}"
							value="Fazer Pedido" />
			
						<h:commandLink
							action="#{pedidoBean.consultarPedido(clienteBean.cliente)}"
							value="Consultar pedidos" />
			
					</h:panelGrid>
			
				</h:form>
			
				<hr />
			
				<h:form>
					<h:commandLink action="#{clienteBean.novo()}"
						value="Mona's Burger homepage" />
				</h:form>

			</div>
		</div>
	</div>
</h:body>
</html>